<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class MY_Loader extends CI_Loader
{
    function view($view, $vars = array(), $return = FALSE)
    {
        $view_name = explode( ':', $view );
        if (isset( $view_name[1] ))
        {
            $vars['content_view'] = $view_name[1];
            return parent::view( $view_name[0], $vars, $return );
        }
        else
        {
            return parent::view( $view, $vars, $return );
        }
    }
}